package com.weisy.signin;

import android.app.Application;

import com.alibaba.android.arouter.launcher.ARouter;
import com.hjq.toast.ToastUtils;

import org.litepal.LitePal;

/**
 * @author weisy
 * @function
 * @date 2019/3/21 11:47
 */
public class SignInApp extends Application {

    private static SignInApp instance = null;

    @Override
    public void onCreate() {
        super.onCreate();
        instance=this;
        //初始化阿里路由
        ARouter.openLog();
        ARouter.openDebug();
        ARouter.init(this);
        //初始化Toast
        ToastUtils.init(this);
        //数据库初始化
        LitePal.initialize(this);
    }

    public static SignInApp getInstance() {
        return instance;
    }
}
